// type toArray<T> = T[]
type toArray<T> = T extends any ? T[] : never

type NumArray = toArray<number>

// number[] | string[]
type NumAndStrArray = toArray<number | string>

export { }